package ClassTest;

import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Created by 春旺 on 2017/9/24.
 */
public class NumberChooseTest {
    NumberChoose sort = new NumberChoose();
    @Test
    public void sort() throws Exception {
        int [] a = {12,26,23,48,59,46};
        int [] b = {12,12,12,12,12};
        assertEquals("没有成功",59,sort.max(a));
        assertEquals("没有成功",12,sort.min(a));
        assertEquals("没有成功",12,sort.max(b));
        assertEquals("没有成功",12,sort.min(b));

    }

}